package com.yyfax.pay.depository.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yyfax.pay.depository.domain.FuiouQueryTask;

/**
 * 富友存管查询任务表持久化
 * 
 * @author buyi
 * @date 2018-01-23 10:51:34
 * @since v2.0.0
 */
public interface FuiouQueryTaskDao {

	/**
	 * @mbggenerated
	 */
	public int insert(FuiouQueryTask record);

	/**
	 * 查询激活的查询任务集合
	 * 
	 * @author buyi
	 * @date 2018-01-23 10:55:55
	 * @since v2.0.8
	 * @param queryPageSize
	 * @return
	 */
	public List<FuiouQueryTask> selectActiveList(int size);

	/**
	 * 批量修改状态
	 * 
	 * @author buyi
	 * @date 2018-01-23 14:45:01
	 * @since v2.0.8
	 * @param destState
	 * @param ids
	 * @return
	 */
	public int updateStateList(@Param("destState") String destState, @Param("ids") List<Integer> ids);

	/**
	 * 更新地订单状态
	 * 
	 * @author buyi
	 * @date 2018-01-25 16:42:23
	 * @since v2.0.8
	 * @param record
	 * @return
	 */
	public int updateState(FuiouQueryTask record);

	/**
	 * 根据主键更新状态
	 * 
	 * @author buyi
	 * @date 2018-01-25 10:29:07
	 * @since v2.0.4
	 * @param id
	 * @param state
	 * @return
	 */
	public int updateStateById(@Param("id") Integer id, @Param("state") String state);
}